﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace DownloadInterface
{
    [Serializable()]
    public class DownloadedFile
    {
        public string fileName { get; set; }

        public string filePath { get; set; }

        public string fileSize { get; set; }

        public DateTime downloadTime { get; set; }

        public double downloadDuration { get; set; }

        public int fileId { get; set; }

        public DownloadedFile(DownloadTask input) 
        {
            fileName = input.fileName;
            filePath = input.filePath;
            fileSize = input.fileSize;
            fileSize = input.fileSize;
            downloadTime = input.finishedTime;
        }

    }

    [Serializable()]
    public class FileCategory
    {
        public int categoryId { get; set; }

        public string categoryName { get; set; }
    }
}
